package com.scy.java.thread;
//方式二：实现Runnable接口
public class MyRunnable implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {
            System.out.println(
                    Thread.currentThread()
                            .getName()+"线程执行！！！"+i);
        }
    }
}
